package se.miun.datatek;
/**
*
* @author rogu0903
*/
public class Child 
{

	  private      String home_phone_number;
	  private      String home_phone_number2;
	  private      short attendence;
	  private      String attendence_time;
	  private      String name;
	  private      String sin_num;
	  private      String allergy;
	  private      String comment;
	  private      int id;
	  private 	   String caretaker_1;
	  private 	   String workplace_1;
	  private      String phone_workplace_1;
	  private      String  mobile_phone_1;
	  private      String email_1;
	  private      String caretaker_2;
	  private      String workplace_2;
	  private      String phone_workplace_2;
	  private      String mobile_phone_2;
	  private	   String email_2;

	    
	   public Child(int id, String pName, String pSin_num){
	        this.name= pName;
	        this.sin_num= pSin_num;
	        this.id =id;
	    }
	 
	   public Child(int id, String name,  String sin , String home_Phone_1, String home_Phone_2, String allergy, String comment, short attendence, String attendence_time, String caretaker_1,
			   String workplace_1, String phone_workplace_1, String  mobile_phone_1, String email_1, String caretaker_2, String workplace_2, String phone_workplace_2,  String mobile_phone_2, String email_2){
		   	this.home_phone_number= home_Phone_1;
		   	this.home_phone_number2= home_Phone_2;
	        this.attendence= attendence;
	        this.attendence_time= attendence_time;
	        this.name= name;
	        this.sin_num= sin;
	        this.allergy=allergy;
	        this.comment= comment;
	        this.id=id;
	        
	        this.caretaker_1=caretaker_1;
	        this.workplace_1=workplace_1;
	        this.phone_workplace_1=phone_workplace_1;
	        this.mobile_phone_1=mobile_phone_1;
	        this.email_1=email_1;
	        this.caretaker_2=caretaker_2;
	        this.workplace_2=workplace_2;
	        this.phone_workplace_2=phone_workplace_2;
	        this.mobile_phone_2=mobile_phone_2;
	        this.email_2=email_2;
	        
	        
	   }
	   public Child(int id, String name,  String sin , String home_Phone_1, String home_Phone_2, String allergy, String caretaker_1,
			   String workplace_1, String phone_workplace_1, String  mobile_phone_1, String email_1, String caretaker_2, String workplace_2, String phone_workplace_2,  String mobile_phone_2, String email_2){
		   	this.home_phone_number= home_Phone_1;
		   	this.home_phone_number2= home_Phone_2;
		   	this.attendence= 0;
		   	this.attendence_time="0:0";
	        this.name= name;
	        this.sin_num= sin;
	        this.allergy=allergy;
	        this.comment= "";
	        this.id=id;
	        
	        this.caretaker_1=caretaker_1;
	        this.workplace_1=workplace_1;
	        this.phone_workplace_1=phone_workplace_1;
	        this.mobile_phone_1=mobile_phone_1;
	        this.email_1=email_1;
	        this.caretaker_2=caretaker_2;
	        this.workplace_2=workplace_2;
	        this.phone_workplace_2=phone_workplace_2;
	        this.mobile_phone_2=mobile_phone_2;
	        this.email_2=email_2;
	        
	        
	   }
	  public String getAllergy() {
		return allergy;
	}

	public void setAllergy(String allergy) {
		this.allergy = allergy;
	}

	public Child(String pHome_phone_number, String pHome_phone_number2, short pAttendence, String pAttendence_time, String pName, String pSin_num, String pComment){
	        home_phone_number= pHome_phone_number;
	        home_phone_number2= pHome_phone_number2;
	        attendence= pAttendence;
	        attendence_time= pAttendence_time;
	        name= pName;
	        sin_num= pSin_num;
	        comment= pComment;
	    }
	/*     public Child(String pHome_phone_number, String pHome_phone_number2, short pAttendence, int pAttendence_time, String pName, String pSin_num, String pComment,int pId ){
	        home_phone_number= pHome_phone_number;
	        home_phone_number2= pHome_phone_number2;
	        attendence= pAttendence;
	        attendence_time= pAttendence_time;
	        name= pName;
	        sin_num= pSin_num;
	        comment= pComment;
	        id=pId;

	    }*/
	    public Child(){
	        home_phone_number= null;
	        home_phone_number2= null;
	        attendence= 0;
	        attendence_time= "0:0";
	        name= null;
	        sin_num= null;
	        comment= null;
	    }
	    public String getCaretaker_1() {
			return caretaker_1;
		}

		public void setCaretaker_1(String caretaker_1) {
			this.caretaker_1 = caretaker_1;
		}

		public String getWorkplace_1() {
			return workplace_1;
		}

		public void setWorkplace_1(String workplace_1) {
			this.workplace_1 = workplace_1;
		}

		public String getPhone_workplace_1() {
			return phone_workplace_1;
		}

		public void setPhone_workplace_1(String phone_workplace_1) {
			this.phone_workplace_1 = phone_workplace_1;
		}

		public String getMobile_phone_1() {
			return mobile_phone_1;
		}

		public void setMobile_phone_1(String mobile_phone_1) {
			this.mobile_phone_1 = mobile_phone_1;
		}

		public String getEmail_1() {
			return email_1;
		}

		public void setEmail_1(String email_1) {
			this.email_1 = email_1;
		}

		public String getCaretaker_2() {
			return caretaker_2;
		}

		public void setCaretaker_2(String caretaker_2) {
			this.caretaker_2 = caretaker_2;
		}

		public String getWorkplace_2() {
			return workplace_2;
		}

		public void setWorkplace_2(String workplace_2) {
			this.workplace_2 = workplace_2;
		}

		public String getPhone_workplace_2() {
			return phone_workplace_2;
		}

		public void setPhone_workplace_2(String phone_workplace_2) {
			this.phone_workplace_2 = phone_workplace_2;
		}

		public String getMobile_phone_2() {
			return mobile_phone_2;
		}

		public void setMobile_phone_2(String mobile_phone_2) {
			this.mobile_phone_2 = mobile_phone_2;
		}

		public String getEmail_2() {
			return email_2;
		}

		public void setEmail_2(String email_2) {
			this.email_2 = email_2;
		}

		public void setId(int id) {
			this.id = id;
		}

		public String childToString(){
	        String  s = this.sin_num +";"+this.home_phone_number+";"+this.home_phone_number2  +";"+this.attendence +";"+this.attendence_time+";"+this.allergy+";"+this.caretaker_1+";"+
		this.workplace_1+";"+this.phone_workplace_1+";"+this.mobile_phone_1+";"+this.email_1+";"+this.caretaker_2+";"+
				this.workplace_2+";"+this.phone_workplace_2+";"+this.mobile_phone_2+";"+this.email_2;
	        return s; 
	    }
	    public String childnamesAndCommentsToString(){
	    	String s = this.name+";"+this.comment+";"+this.attendence;
	    	return s;
	    }
	    public short isAttendence() {
	        return attendence;
	    }

	    public void setAttendence(short attendence) {
	        this.attendence = attendence;
	    }

	    public int getId() {
	        return id;
	    }

	    public String getAttendence_time() {
	        return attendence_time;
	    }

	    public void setAttendence_time(String attendence_time) {
	        this.attendence_time = attendence_time;
	    }

	    public String getComment() {
	        return comment;
	    }

	    public void setComment(String comment) {
	        this.comment = comment;
	    }

	    public String getHome_phone_number() {
	        return home_phone_number;
	    }

	    public void setHome_phone_number(String home_phone_number) {
	        this.home_phone_number = home_phone_number;
	    }

	    public String getHome_phone_number2() {
	        return home_phone_number2;
	    }

	    public void setHome_phone_number2(String home_phone_number2) {
	        this.home_phone_number2 = home_phone_number2;
	    }

	    public String getName() {
	        return name;
	    }

	    public void setName(String name) {
	        this.name = name;
	    }

	    public String getSin_num() {
	        return sin_num;
	    }

	    public void setSin_num(String sin_num) {
	        this.sin_num = sin_num;
	    }
	
	    public void setID(int id)
	    {
	    	this.id=id;
	    	
	    }

}
